exports.handleErr = function (err, res) {
    console.log(err);
    return res.json({code: 1, err: err});
}